<?php
include 'includes.php';


if (isset($_SESSION['user']) && $_SESSION['user']['permisos'] == 'admin') {

$raid = R::load('raid', $_GET['id']);

R::trash($raid);
}



error_reporting(E_ALL);
$host3 = $_SERVER['HTTP_HOST'];
$uri = rtrim(dirname($_SERVER['PHP_SELF']), '/\\');
$extra = 'adminraid.php';
header("Location: http://" . $host3 . $uri . "/" . $extra);
die();
?>